import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/page/layout/'
import page from "./page"

Vue.use(VueRouter)


// 公共路由
export const constantRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: "/cabin"
  }
]

const Router = new VueRouter({
  routes: []
})

Router.addRoutes([
  ...constantRoutes,
  // ...charts,
  ...page,
])

export default Router;